<script type="text/javascript" src="{$base_dir}modules/dept_rad/js/AJAX_UltrasoundProcessor.js"></script>
<script type="text/javascript">
<!--
{literal}
    $(document).ready(function(){
          // Rigister handler for serviceGroup
          $('#radServiceGroup').change(function(){
               loadRadServices($(this).attr('id'), 'radService');
          });
          
          // Add date picker
          addDatePickerTime("#created_dd", '#created_mm', '#created_yyyy', '#createdTime', false, false, true);
          
          // Generate dialog when the page loaded
          var buttons = {};
          buttons[_('Cancel')] = function() {
              $(this).dialog('close');        
          };

          generalDialog('radAssignemntDiv', _("ADD ULTRASOUND SERVICES"), null, null,{
              autoOpen: true,         
              bgiframe: true,
              resizable: false,
              modal: true,
              width:680,
              height:460,
              buttons: buttons
          });
    });
{/literal}
//-->
</script>
<div id="radAssignemntDiv">
<form id="radAssignmentFrm">
    <input type="hidden" id="radTicketId" name="radTicketId" value="{$radTicketId}">
       
    <!-- Common info of an assignment -->
    {include file="/radiology/element_assignment_edit_common.html"}
    
    <!-- Detail services of an assignment -->
    {include file="/radiology/element_assignment_edit_details.html"}
    
</form>
</div>